import java.io.*;

public class FilSkriver {
	public FilSkriver() {
		System.out.println("Starter skriveprosess...");
		try {
			FileWriter fstream = new FileWriter("c:/temp/out.txt");
			BufferedWriter out = new BufferedWriter(fstream);
			
			for(int i=1; i<100000; i++) {
				out.write("Linje: "+i + "\n");
				out.newLine();
			}
		} catch (Exception e) {
			System.err.println("Error: " + e.getMessage());
		}
		System.out.println("Ferdig med skriveprosess, avslutter..");
		System.exit(0);
	}
}
